# $NetBSD: Makefile,v 1.9 2012/10/03 15:09:48 asau Exp $
#

DISTNAME=	mailfilter-0.7.1
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=mailfilter/}
LICENSE=	gnu-gpl-v2

MAINTAINER=	virtus@wanadoo.nl
HOMEPAGE=	http://mailfilter.sourceforge.net/
COMMENT=	Filter mail on a POP3 server


GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake bison
USE_LANGUAGES=		c c++
USE_PKGLOCALEDIR=	yes

post-extract:
	${RM} -f ${WRKSRC}/src/getopt.h

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailfilter
	${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/mailfilter
	${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${PREFIX}/share/doc/mailfilter

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
